package com.higold.cloud.mvp.model

import com.higold.cloud.mvp.model.bean.regionalDetail.RegionalDetail
import com.higold.cloud.net.RetrofitManager
import com.higold.cloud.rx.scheduler.SchedulerUtils
import io.reactivex.Observable

/**
 *    author : lxz
 *    date   : 2019/9/3 10:26
 *    desc   :
 */
class RegionalDetailModel {
    /**
     * 业务员（详情）任务达成情况
     */
    fun requestRegionalDetail(salemanId: String): Observable<RegionalDetail> {

        return RetrofitManager.service.getRegionalDetail(salemanId)
                .compose(SchedulerUtils.ioToMain())
    }
}